package JD_CAST_COL_MIGHT;

public class Fixed_02 {
    ArrayList<Object> list = new ArrayList<Object>();
    public void setInfo() {
        list.add("might");
        list.add("must");
    }
    public void display() {
        Test test = new Test();
        test.setInfo();
        for(Object obj : list) {
            if(obj instanceof String) {
                System.out.println("name==>"+(String) obj);
            }
        }
    }
}
